package net.mujiwulian.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @Author: silence
 * @Description:
 * @Date:Create：in 2020/1/8 17:49
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "disease")
public class Disease implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "name")
    private String name;

    @TableField(value = "type_id")
    private Integer typeId;

    /**
     * 概述
     */
    @TableField(value = "summarize")
    private String summarize;

    /**
     * 症状
     */
    @TableField(value = "symptom")
    private String symptom;

    /**
     * 病例
     */
    @TableField(value = "case_analysis")
    private String caseAnalysis;

    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    private static final long serialVersionUID = 1L;

    @TableField(exist = false)
    List<Day> days;
}
